<template>
<div>
  <h1>三方转接</h1>
  <p>
    <van-field label="请输入手机号：" v-model="mobile"/>
    <van-button @click="sq">确认授权</van-button>
  </p>
</div>
</template>

<script>
export default {
name: "sf_zhuanje",
  data(){
  return{
    mobile:'',
    token:'qwertyuiop',
    uid:1234,
    }
  },
  methods:{
    sq(){
      this.$axios.post('users/dengluM',{'mobile':this.mobile,'token':this.token,'uid':this.uid}).then(res=>{
        if(res.data.code==200){
          alert('ok')
          window.location.href = res.data.url
        }else {
          alert('no')
        }
      })
    }
  }
}
</script>

<style scoped>

</style>
